@mixin font-face($family, $file, $style: normal, $weight: normal) {
  $fonts-folder: '../../assets/fonts';
  $path: $fonts-folder + '/' + $family + '/' + $file;

  @font-face {
    font-family: '#{$family}';
    font-style:  $style;
    font-weight: $weight;

    src: url($path + '.eot');
    src: url($path + '.eot?#iefix') format('embedded-opentype'),
         url($path + '.woff') format('woff'),
         url($path + '.woff2') format('woff2'),
         url($path + '.ttf')  format('truetype');

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* RobotoDraft */
// @include font-face(RobotoDraft, RobotoDraft-Light, normal, 300);
// @include font-face(RobotoDraft, RobotoDraft-Regular, normal, 400);
// @include font-face(RobotoDraft, RobotoDraft-Medium, normal, 500);
// @include font-face(RobotoDraft, RobotoDraft-Bold, normal, 700);

/* Roboto */
@include font-face(Roboto, roboto-light, normal, 300);
@include font-face(Roboto, roboto-regular, normal, 400);
@include font-face(Roboto, roboto-medium, normal, 500);
@include font-face(Roboto, roboto-bold, normal, 700);

/*  Self hosted Google Material icons font */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url('../../assets/fonts/Material Icons/MaterialIcons-Regular.eot?#iefix') format('embedded-opentype'),
       url('../../assets/fonts/Material Icons/MaterialIcons-Regular.woff') format('woff'),
       url('../../assets/fonts/Material Icons/MaterialIcons-Regular.woff2') format('woff2'),
       url('../../assets/fonts/Material Icons/MaterialIcons-Regular.ttf')  format('truetype');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
